<template>
  <div>
    <div
      v-for="(item,index) in list"
      :key="index"
    >
      <el-button
        type="text"
        @click="redirect(item)"
      >{{ item.meta.title }} :--> &nbsp; &nbsp; '{{ item.path }}'</el-button>
    </div>
  </div>
</template>

<script>
import { routes } from '@/router'
export default {
  name: 'Home',
  data() {
    return {
      list: routes
    }
  },
  methods: {
    redirect(item) {
      this.$router.push({ path: item.path })
    }
  }
}
</script>
